/*
 * Licensed under the License, Version 1.0 (the "License");
 * You may obtain a copy of the License at
 *   http://www.heavenick.com/license/License 
 * Copyright information Heavenick to all.
 * Unless the applicable legal requirements or written 
 * consent, can use or around the code, and no warranties 
 * of any kind and state responsibility.
 */
package com.heavenick.core.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 *@author Heavenick
 *@version 1.0
 *@date 2012-8-21 下午3:01:35
 */
public class SpringFrameworkBoot {	
	private String configPath = "/spring/*";
	private static ApplicationContext context = null;
	
	static {
		SpringFrameworkBoot sfb = new SpringFrameworkBoot();
		context = new ClassPathXmlApplicationContext(sfb.getConfigPath());
	}
	
	public void initialization(){
	
	}

	public static ApplicationContext getContext() {
		return context;
	}

	public String getConfigPath() {
		return configPath;
	}

	public void setConfigPath(String configPath) {
		this.configPath = configPath;
	}
}